package com.springboot.chongwu.controller.app;


import com.springboot.chongwu.entity.Lingyang;
import com.springboot.chongwu.entity.view.LingyangView;
import com.springboot.chongwu.qpage.QPage;
import com.springboot.chongwu.service.ILingyangService;
import com.springboot.chongwu.util.ResultView;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 宠物领养表 前端控制器
 * </p>
 *
 * @author author
 * @since 2024-09-25
 */
@RestController
@RequestMapping("/api/front/lingyang")
public class AppLingyangController {

    @Autowired
    private ILingyangService service;


    /**
     * 领养列表
     * @param obj
     * @return
     */
    @GetMapping("/getSelect")
    public ResultView getSelect(LingyangView obj) {
        return this.service.getSelect(obj);
    }


    /**
     * 申请领养
     * @return
     */
    @PostMapping("/shenqing")
    public ResultView shenqing(Lingyang lingyang) {
        return this.service.shenqing(lingyang);
    }


}
